/**
 * @description
 * @Date : 2018/10/27
 * @author : YangBin
 * @Last Modified time : 2018/10/27
 */
import axios from 'axios';
import readProd from "@srcConfig/index";

const _axios = axios.create({
  timeout: 20000,
});
const Get = _axios.get;

const Post = readProd || (process.env.NODE_ENV === 'production') ? _axios.post : _axios.get;
//var Post = _axios.get;
//process.env.NODE_ENV 在webpack.dev.conf.js 中进行配置

export  {Get, Post};
